package com.ruoyi.hcmain.domain;

import java.math.BigDecimal;
import java.util.Date;

import lombok.Data;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 价格对象 hc_prich
 * 
 * @author ruoyi
 * @date 2023-08-12
 */
@Data
public class HcPrich extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键 */
    private Long prichId;

    /** 关联物料 */
    @Excel(name = "关联物料")
    private Long stuffId;

    /** 价格 */
    @Excel(name = "价格")
    private BigDecimal price;

    /** 浮动 */
    @Excel(name = "浮动")
    private float floats;

    /** 版本 */
    @Excel(name = "版本")
    private Long ver;

    /** 其他 */
    @Excel(name = "其他")
    private String other;

    private HcStuff stuff;
    private Date createTime;

    public void setPrichId(Long prichId) 
    {
        this.prichId = prichId;
    }

    public Long getPrichId() 
    {
        return prichId;
    }
    public void setStuffId(Long stuffId) 
    {
        this.stuffId = stuffId;
    }

    public Long getStuffId() 
    {
        return stuffId;
    }
    public void setPrice(BigDecimal price) 
    {
        this.price = price;
    }

    public BigDecimal getPrice() 
    {
        return price;
    }
    public void setFloat(float floats)
    {
        this.floats = floats;
    }

    public float getFloat()
    {
        return floats;
    }
    public void setVer(Long ver) 
    {
        this.ver = ver;
    }

    public Long getVer() 
    {
        return ver;
    }
    public void setOther(String other) 
    {
        this.other = other;
    }

    public String getOther() 
    {
        return other;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("prichId", getPrichId())
            .append("stuffId", getStuffId())
                .append("createTime", getCreateTime())
            .append("price", getPrice())
            .append("float", getFloat())
            .append("ver", getVer())
            .append("other", getOther())
            .toString();
    }
}
